//
// Created by liushuai on 18-8-23.
//

#ifndef TREE_TREE_H
#define TREE_TREE_H


class Tree {
private:
    int size;
    int *pTree;
public:
    Tree(int tsize,int & proot);
    ~Tree();
    int *searchNode(int nodeIndex);
    bool addNode(int nodeIndex,int direction,int &pNode);
    bool deleteNode(int nodeIndex,int *pNode);
    void treeTravers();

};


#endif //TREE_TREE_H
